import request from '@/utils/request'

export function fetchCustomerList(params) {
  return request({
    url: '/api/customer/getList',
    method: 'post',
    params
  })
}

export function createCustomer(params) {
  return request({
    url: '/api/customer/add',
    method: 'post',
    params
  })
}

export function updateCustomer(data) {
  return request({
    url: '/api/customer/update',
    method: 'post',
    data
  })
}

export function deleteCustomer(params) {
  return request({
    url: '/api/customer/delete',
    method: 'post',
    params
  })
}